package com.un.ebs.invoice.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InvoiceCashNoteItem)表实体类
 *
 * @author liubo
 * @since 2020-12-06 21:11:39
 */
@Data
@Component
@TableName("tb_invoice_cash_note_item")
@SuppressWarnings("serial")
public class InvoiceCashNoteItem extends Model<InvoiceCashNoteItem> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "invoice_cash_note_id",  length = 40 , precision = 0)
    private String invoiceCashNoteId;
                
    @DbField(name = "cash_money",  length = 18 , precision = 2)
    private Double cashMoney;
        
    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @DbField(name = "invoice_note_id", length = 40, precision = 0)
    private String invoiceNoteId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}